TupleTreeModel
Base classes
| Name | Children | Inherits |
|---|---|---|
| TreeModel prettyqt.itemmodels.treemodel TreeModel which is used as a base for most TreeModels implemented. |
|
⋔ Inheritance diagram
graph TD
1946373679["itemmodels.TupleTreeModel"]
2846913429["itemmodels.TreeModel"]
874904086["core.AbstractItemModel"]
3882849576["core.AbstractItemModelMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
1898060022["QtCore.QAbstractItemModel"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
2846913429 --> 1946373679
874904086 --> 2846913429
3882849576 --> 874904086
3227531497 --> 3882849576
2751680898 --> 3227531497
2751680898 --> 3882849576
1898060022 --> 874904086
3984060476 --> 1898060022
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: TreeModel
Base Tree Model to display a dict[tuple[Any], str] data structure.
The dictionary keys are tuples of path parts, like ("path", "to", "something")
mapping = {("a",): "test2", ("a", "b"): "test", ("a", "b", "c"): "test3"}
model = TupleTreeModel(mapping)
table = widgets.TreeView()
table.set_model(model)
table.show()